/*
** error.h for 42sh in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#ifndef H_ERROR
#define H_ERROR

typedef char t_error;

#define SH_ERR_PREFIX         "42sh error: "
#define SH_ERR_INIT           "basic initialization failed"
#define SH_ERR_MALLOC         "malloc failed (%s:%u)"
#define SH_ERR_MALLOC_SIZE    "malloc of size %i (%s:%u)"
#define SH_ERR_READ           "read error on fd %i"
#define SH_ERR_JOB_INVALID    "no such job (%i)"

void error_print(t_error *error, ...);

#endif
